package client;

import org.springframework.stereotype.Component;
import rock.common.annotation.RpcReference;
import service.IUserService;

@Component
public class UserServiceController {

    @RpcReference(group = "example1", version = "version01")
    private IUserService userService;

    public void test() throws InterruptedException {
        String user = this.userService.getUserById(123);
        System.out.println(user);

    }
}
